package com.edu.entity.queryanswer;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Query {
    private int id;
    private String querytitle;
    private String querydetail;
    private int querymoney;
    private String tag;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:ss:mm")
    private Date createtime;
    private int isslove;
    private int queryuserid;
    private String queryusername;
    private int broswer;
    public Query() {
        super();
    }

    @Override
    public String toString() {
        return "Query{" +
                "id=" + id +
                ", querytitle='" + querytitle + '\'' +
                ", querydetail='" + querydetail + '\'' +
                ", querymoney=" + querymoney +
                ", tag='" + tag + '\'' +
                ", createtime=" + createtime +
                ", isslove=" + isslove +
                ", queryuserid=" + queryuserid +
                ", queryusername='" + queryusername + '\'' +
                ", broswer=" + broswer +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getQuerytitle() {
        return querytitle;
    }

    public void setQuerytitle(String querytitle) {
        this.querytitle = querytitle;
    }

    public String getQuerydetail() {
        return querydetail;
    }

    public void setQuerydetail(String querydetail) {
        this.querydetail = querydetail;
    }

    public int getQuerymoney() {
        return querymoney;
    }

    public void setQuerymoney(int querymoney) {
        this.querymoney = querymoney;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public int getIsslove() {
        return isslove;
    }

    public void setIsslove(int isslove) {
        this.isslove = isslove;
    }

    public int getQueryuserid() {
        return queryuserid;
    }

    public void setQueryuserid(int queryuserid) {
        this.queryuserid = queryuserid;
    }

    public String getQueryusername() {
        return queryusername;
    }

    public void setQueryusername(String queryusername) {
        this.queryusername = queryusername;
    }

    public int getBroswer() {
        return broswer;
    }

    public void setBroswer(int broswer) {
        this.broswer = broswer;
    }

    public Query(String querytitle, String querydetail, int querymoney, String tag, Date createtime, int isslove, int queryuserid, String queryusername, int broswer) {
        this.querytitle = querytitle;
        this.querydetail = querydetail;
        this.querymoney = querymoney;
        this.tag = tag;
        this.createtime = createtime;
        this.isslove = isslove;
        this.queryuserid = queryuserid;
        this.queryusername = queryusername;
        this.broswer = broswer;
    }

    public Query(int id, String querytitle, String querydetail, int querymoney, String tag, Date createtime, int isslove, int queryuserid, String queryusername, int broswer) {
        this.id = id;
        this.querytitle = querytitle;
        this.querydetail = querydetail;
        this.querymoney = querymoney;
        this.tag = tag;
        this.createtime = createtime;
        this.isslove = isslove;
        this.queryuserid = queryuserid;
        this.queryusername = queryusername;
        this.broswer = broswer;
    }
}
